import org.antlr.runtime.*;

public class simple_expression {
    public static void main(String[] args) throws Exception {
        
        System.out.println("Creating lexer.");
        ANTLRInputStream input = new ANTLRInputStream(System.in);
        simple_expressionLexer lexer = new simple_expressionLexer(input);
        
        System.out.println("Creating token stream");
        CommonTokenStream tokens = new CommonTokenStream(lexer);
        for(Object token : tokens.getTokens()) {
            System.out.println(token);
        }
        
        System.out.println("Creating parser");
        simple_expressionParser parser = new simple_expressionParser(tokens);
        parser.prog();
    }
}

